//
//  OEOrderDataController.h
//  OneEightyNine
//
//  Created by Mac on 2019/3/8.
//  Copyright © 2019 stoneobs. All rights reserved.
//

#import <Foundation/Foundation.h>
/*
 order_status  0表示下单，1表示还，2表示完成，4表示订单取消，5订单评价
 shipping_status  0是未拿到货，2是拿到货
 
 
 1     "order_status" = 0; shipping_status= 0            order in place
 流程  用户下单之后
 菜单：取消订单
 
 2  "order_status" = 0;   shipping_status= 2                           使用中（inuse）
 菜单：退还
 
 3  "order_status" = 1;  退还中 （returned）
 菜单：无
 
 
 4  "order_status" = 2;  已完成 (complete)
 商家确认归还后，
 菜单：删除订单
 
 5  "order_status" = 4;  订单取消(cancelled)
 菜单：删除订单
 */
NS_ASSUME_NONNULL_BEGIN
typedef void(^OEOrderDataNormalHandle)(BOOL success,NSString * errorString,NSDictionary * resp);
/************订单数据接口******************/
@interface OEOrderDataController : NSObject
//取消订单
+ (void)sendCancleOrderRequestWithOrder_id:(NSString*)order_id  handle:(OEOrderDataNormalHandle)handle;
//删除订单
+ (void)sendDeleteOrderRequestWithOrder_id:(NSString*)order_id  handle:(OEOrderDataNormalHandle)handle;
//归还订单
+ (void)sendReturnOrderRequestWithOrder_id:(NSString*)order_id  handle:(OEOrderDataNormalHandle)handle;
//查询详情
+ (void)sendOrderDetailRequestWithOrder_id:(NSString*)order_id  handle:(OEOrderDataNormalHandle)handle;
@end

NS_ASSUME_NONNULL_END
